package com.cnhis.cloudhealth.clinical.hosnurse.hosdoctoradvice.dao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.cnhis.cloudhealth.commons.Mappers.ModelVo;
import com.cnhis.cloudhealth.commons.dao.BaseDao;
import com.cnhis.cloudhealth.commons.utils.Page;
@SuppressWarnings("rawtypes")
@Repository
public class HosDoctorAdviceDao extends BaseDao{
	public List doctorAdviceSheetDiagnose(Map map)throws Exception{
		return queryForList("HosDoctorAdvice.doctorAdviceSheetDiagnose", map);
	}
    public Page getPatientsDoctorAdvice(Map map,int currentPage,int pageSize) throws Exception{
    	
    	return this.queryForPage("HosDoctorAdvice.getPatientsDoctorAdvice", map, currentPage, pageSize, "HosDoctorAdvice.getPatientsDoctorAdviceCount");
    }
    public Page adviceHint(Map map,int currentPage,int pageSize)throws Exception{
    	return queryForPage("HosDoctorAdvice.adviceHint", map,currentPage, pageSize);
    }
    public Map getBCE03(Map map)throws Exception{
    	return (Map) queryForExtObject("HosDoctorAdvice.getBCE03", map);
    }
    public String getBCK03(Map map)throws Exception{
    	return (String) queryForExtObject("HosDoctorAdvice.getBCK03", map);
    }
    public long getBCK01(Map map)throws Exception{
    	return (long) queryForExtObject("HosDoctorAdvice.getBCK01", map);
    }
    //新增住院病人医嘱单
    public void saveCBM2(Map map)throws Exception{
  	   insert("HosDoctorAdvice.saveCBM2", map);
    }
    //新增住院病人医嘱记录
    public void saveVAF2(Map map)throws Exception{
    	insert("HosDoctorAdvice.saveVAF2", map);
    }
    //新增住院病人医嘱记录
    public void saveVBG1(Map map)throws Exception{
    	insert("HosDoctorAdvice.saveVBG1", map);
    }
    //新增住院病人医嘱提醒记录
    public void saveVBZ1(Map map)throws Exception{
    	insert("HosDoctorAdvice.saveVBZ1", map);
    }
    public int existsVCN1(Map map)throws Exception{
    	return (int) queryForExtObject("HosDoctorAdvice.existsVCN1", map);
    }
    public void saveVCS1(Map map)throws Exception{
    	insert("HosDoctorAdvice.saveVCS1", map);
    }
    public void updateVCN1(Map map)throws Exception{
    	update("HosDoctorAdvice.updateVCN1", map);
    }
    public void saveVCL1(Map map)throws Exception{
    	insert("HosDoctorAdvice.saveVCL1",map);
    }
    public void updateVAE1(Map map)throws Exception{
    	update("HosDoctorAdvice.updateVAE1", map);
    }
    public void insertVAO1(Map map)throws Exception{
    	insert("HosDoctorAdvice.insertVAO1", map);
    }
    public void insertVAO2(Map map)throws Exception{
    	insert("HosDoctorAdvice.insertVAO2", map);
    }
    public Page storedNewTreamentRecord(Map map,int currentPage,int pageSize)throws Exception{
    	return queryForPage("HosDoctorAdvice.storedNewTreamentRecord", map, currentPage, pageSize);
    }
    public List getItemsType(Map map)throws Exception{
    	return queryForList("HosDoctorAdvice.getItemsType", map);
    }
    public List getAdviceProperty(Map map)throws Exception{
    	return queryForList("HosDoctorAdvice.getAdviceProperty", map);
    }
   
    public List getAdviceItemsTree()throws Exception{
    	return queryForList("HosDoctorAdvice.getAdviceItemsTree", null);
    }
    public Page queryAdviceItemsDetails(Map map,int currentPage,int pageSize)throws Exception{
    	return queryForPage("HosDoctorAdvice.queryAdviceItemsDetails", map, currentPage, pageSize);
    }
    public Page queryDetalParam0(Map map,int currentPage,int pageSize)throws Exception{
    	return queryForPage("HosDoctorAdvice.queryDetalParam0", map, currentPage, pageSize);
    }
    public Page queryDetalParam1(Map map,int currentPage,int pageSize)throws Exception{
    	return queryForPage("HosDoctorAdvice.queryDetalParam1", map, currentPage, pageSize);
    }
    public Page queryDetalParam2(Map map,int currentPage,int pageSize)throws Exception{
    	return queryForPage("HosDoctorAdvice.queryDetalParam2", map, currentPage, pageSize);
    }
    public Page queryDetalParam(Map map,int currentPage,int pageSize)throws Exception{
    	return queryForPage("HosDoctorAdvice.queryDetalParam", map, currentPage, pageSize);
    }
    public List ruleAdvice(Map map)throws Exception{
    	return queryForList("HosDoctorAdvice.ruleAdvice", map);
    }
    public List getDefaultLevel(Map map)throws Exception{
    	return queryForList("HosDoctorAdvice.getDefaultLevel", map);
    }
    public Page queryTreatmentDetail(Map map,int currPage,int pageSize)throws Exception{
  	  return queryForPage("HosDoctorAdvice.queryTreatmentDetail", map, currPage, pageSize);
    }
    public List queryMedicalAdvice(Map map)throws Exception{
    	
    	return queryForList("HosDoctorAdvice.queryMedicalAdvice", map);
    }
    public List getMedicalOffice(Map map)throws Exception{
    	return queryForList("HosDoctorAdvice.getMedicalOffice", map);
    }
    public List getAdviceGroupDetail(Map map)throws Exception{
    	return queryForList("HosDoctorAdvice.getAdviceGroupDetail", map);
    }
    public List queryOffice()throws Exception{
    	return queryForList("HosDoctorAdvice.queryOffice", null);
    }
    public List saveCASign(Map map)throws Exception{
    	return queryForList("HosDoctorAdvice.saveCASign", map);
    }
    public String getPara(Map map)throws Exception{
    	return (String) queryForExtObject("HosDoctorAdvice.getPara", map);
    }
    public Page fetchTreatmentList1(Map map,int currPage,int pageSize)throws Exception{
    	return queryForPage("HosDoctorAdvice.fetchTreatmentList1", map, currPage, pageSize);
    }
    public Page fetchTreatmentList2(Map map,int currPage,int pageSize)throws Exception{
    	return queryForPage("HosDoctorAdvice.fetchTreatmentList2", map, currPage, pageSize);
    }
    public Page fetchTreatmentList01(Map map,int currPage,int pageSize)throws Exception{
    	return queryForPage("HosDoctorAdvice.fetchTreatmentList01", map, currPage, pageSize);
    }
    public Page fetchTreatmentList02(Map map,int currPage,int pageSize)throws Exception{
    	return queryForPage("HosDoctorAdvice.fetchTreatmentList02", map, currPage, pageSize);
    }
    public Page fetchTreatmentList(Map map,int currPage,int pageSize)throws Exception{
    	return queryForPage("HosDoctorAdvice.fetchTreatmentList", map, currPage, pageSize);
    }
    public List getHocusItems(Map map)throws Exception{
    	return queryForList("HosDoctorAdvice.getHocusItems",map);
    }
    public Page queryItemsTypeDetail(Map map,int currPage,int pageSize)throws Exception{
    	return queryForPage("HosDoctorAdvice.queryItemsTypeDetail", map, currPage, pageSize);
    }
    public String getABC021(Map map)throws Exception{
    	return (String) queryForExtObject("HosDoctorAdvice.getABC021", map);
    }
    public String getABC022(Map map)throws Exception{
    	return (String) queryForExtObject("HosDoctorAdvice.getABC022", map);
    }
    
    public Map getBBY25(Map map)throws Exception{
    	return (Map) queryForExtObject("HosDoctorAdvice.getBBY25", map);
    }
    
    public List medicalAdviceDetail(Map map)throws Exception{
    	return queryForList("HosDoctorAdvice.medicalAdviceDetail", map);
    }
    public String paramABC02(Map map)throws Exception{
    	return (String) queryForExtObject("HosDoctorAdvice.paramABC02", map);
    }
    public List queryFeeDetail(Map map)throws Exception{
    	return queryForList("HosDoctorAdvice.queryFeeDetail", map);
    }
    public  String params(Map map)throws Exception{
    	return (String) queryForExtObject("HosDoctorAdvice.params", map);
    }
    public List checkAdviceFeeDetail(Map map)throws Exception{
    	return queryForList("HosDoctorAdvice.checkAdviceFeeDetail", map);
    }
    public List checkItemsBody(Map map)throws Exception{
    	return queryForList("HosDoctorAdvice.checkItemsBody", map);
    }
    public List getBarcode(Map map)throws Exception{
    	return queryForList("HosDoctorAdvice.getBarcode", map);
    }
    public List medicalInventory(Map map)throws Exception{
    	return queryForList("HosDoctorAdvice.medicalInventory", map);
    }
    public List herbalMedicineAdvice(Map map)throws Exception{
    	return queryForList("HosDoctorAdvice.herbalMedicineAdvice", map);
    }
    public List herbalMedicineById(Map map)throws Exception{
    	return queryForList("HosDoctorAdvice.herbalMedicineById", map);
    }
    public Page herbalCommonList(Map map,int currPage,int pageSize)throws Exception{
    	return queryForPage("HosDoctorAdvice.herbalCommonList", map,currPage,pageSize);
    }
    public List queryAdviceItems(Map map)throws Exception{
    	return queryForList("HosDoctorAdvice.queryAdviceItems", map);
    }
    public List checkMedicalRoom(Map map)throws Exception{
    	return queryForList("HosDoctorAdvice.checkMedicalRoom", map);
    }
    public List checkMedicalRoom1(Map map)throws Exception{
    	return queryForList("HosDoctorAdvice.checkMedicalRoom1", map);
    }
    public Page tempAdvice(Map map,int currPage,int pageSize)throws Exception{
    	return queryForPage("HosDoctorAdvice.tempAdvice", map, currPage, pageSize);
    }
    public Map getParameter(Map map)throws Exception{
    	return (Map) queryForExtObject("HosDoctorAdvice.getParameter", map);
    }
    public List getTempVaf(Map map)throws Exception{
    	return queryForList("HosDoctorAdvice.getTempVaf", map);
    }
    public int checkFee(Map map)throws Exception{
    	return (int) queryForExtObject("HosDoctorAdvice.checkFee", map);
    }
    public int checkOPS(Map map)throws Exception{
    	return (int) queryForExtObject("HosDoctorAdvice.checkOPS", map);
    }
    public int checkCurrentOPS(Map map)throws Exception{
    	return (int) queryForExtObject("HosDoctorAdvice.checkCurrentOPS", map);
    }
    public int checkVAF(Map map)throws Exception{
    	return (int) queryForExtObject("HosDoctorAdvice.checkVAF", map);
    }
    public void updateVafState(Map map)throws Exception{
	   update("HosDoctorAdvice.updateVafState", map);
   }
    public List checkAdviceStateContent(Map map)throws Exception{
    	return queryForList("HosDoctorAdvice.checkAdviceStateContent", map);
    }
    public String getParamValue()throws Exception{
    	return (String) queryForExtObject("HosDoctorAdvice.getParamValue", null);
    }
    public List checkAdvice(Map map)throws Exception{
    	return queryForList("HosDoctorAdvice.checkAdvice", map);
    }
    public List proofreadAdvice(Map map)throws Exception{
    	return queryForList("HosDoctorAdvice.proofreadAdvice", map);
    }
    public Map getVAA04(Map map)throws Exception{
    	return (Map) queryForExtObject("HosDoctorAdvice.getVAA04", map);
    }
    //是否存在删除医嘱
    public int isDelete(Map map)throws Exception{
    	return (int) queryForExtObject("HosDoctorAdvice.isDelete", map);
	}
    //是否已执行
    public int isCurrented(Map map)throws Exception{
    	return (int) queryForExtObject("HosDoctorAdvice.isCurrented", map);
	}
    //核对执行科室
    public int checkOffice(Map map)throws Exception{
    	return (int) queryForExtObject("HosDoctorAdvice.checkOffice", map);
	}
    public int checkValuation(Map map)throws Exception{
    	return (int) queryForExtObject("HosDoctorAdvice.checkValuation", map);
    }
    public List getVBD2List(Map map)throws Exception{
    	return queryForList("HosDoctorAdvice.getVBD2List", map);
    }
    public void saveVBD2(Map map)throws Exception{
    	insert("HosDoctorAdvice.saveVBD2", map);
    }
    public void saveVBG2(Map map)throws Exception{
    	insert("HosDoctorAdvice.saveVBG2", map);
    }
    public List getTempVaf2(Map map)throws Exception{
    	return queryForList("HosDoctorAdvice.getTempVaf2", map);
    }
    public void updateVAF2(Map map)throws Exception{
    	update("HosDoctorAdvice.updateVAF2", map);
    }
    public int checkState(Map map)throws Exception{
    	return (int) queryForExtObject("HosDoctorAdvice.checkState", map);
    }
    public void insertVDD1(Map map)throws Exception{
    	insert("HosDoctorAdvice.insertVDD1", map);
    }
    public Map getlParaV_lPara262()throws Exception{
    	return (Map) queryForExtObject("HosDoctorAdvice.getlParaV_lPara262", null);
    }
    public  Map getValue374_pValue()throws Exception{
    	return (Map) queryForExtObject("HosDoctorAdvice.getValue374_pValue", null);
   	}
    public  void updatemassager(Map map)throws Exception{
    	update("HosDoctorAdvice.updatemassager", map);
   	}
    public int selectmassager(Map map)throws Exception{
    	return (int) queryForExtObject("HosDoctorAdvice.selectmassager", map);
    }
    public int selectvbm1(Map map)throws Exception{
    	return (int) queryForExtObject("HosDoctorAdvice.selectvbm1", map);
    }
    public Map getvaf2(Map map)throws Exception{
    	return (Map) queryForExtObject("HosDoctorAdvice.getvaf2", map);
    }
    public int selectEdit(Map map)throws Exception{
        return (int) queryForExtObject("HosDoctorAdvice.selectEdit", map);
    }
}
